-- GENERATED SPELL FOR [Razorfen Earthbreaker] --


function spell0_4525(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(8046,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4525', 2000, 1)
end

function spell1_4525(pUnit, Event) --@Mind Tremor,n/a--
pUnit:FullCastSpellOnTarget(8272,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4525', 2000, 1)
end

function Sorts_4525(pUnit, Event)
local choix_sorts_4525 = math.random(0, 1)
if choix_sorts_4525 == 0 then
pUnit:RegisterEvent('spell0_4525', 1, 1)
end
if choix_sorts_4525 == 1 then
pUnit:RegisterEvent('spell1_4525', 1, 1)
end
end

function mob4525_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4525', math.random(1500, 3000), 1)
end

function mob4525_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4525_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4525_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4525, 1, 'mob4525_Action')
RegisterUnitEvent(4525, 2, 'mob4525_Leave')
RegisterUnitEvent(4525, 3, 'mob4525_Kill')
RegisterUnitEvent(4525, 4, 'mob4525_Die')
